﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Blam_Unity.Classes.Windows_Explorer
{
    class quickTasks
    {
        /// <summary>
        /// Remove form title to get the filePath
        /// </summary>
        /// <param name="inputTitle">Form title</param>
        /// <returns></returns>
        public static string removeFormTitle(string inputTitle)
        {
            inputTitle = inputTitle.Replace("feature.film - ", "").Replace("physicsconstants - ", "").Replace("blf.mapinfo - ", "").Replace("blf.mapimage - ", "");

            return inputTitle;
        }

        /// <summary>
        /// Check to see if the form is applicable for Resigning
        /// </summary>
        /// <param name="inputTitle">Form title</param>
        /// <returns></returns>
        public static bool formResignCheck(string inputTitle)
        {
            if (inputTitle.StartsWith("feature.film")) { return true; }
            else if (inputTitle.StartsWith("physicsconstants")) { return false; }
            else if (inputTitle.StartsWith("Unity")) { return false; }
            else if (inputTitle.StartsWith("blf.mapinfo")) { return false; }
            else if (inputTitle.StartsWith("blf.mapimage")) { return false; }
            return false;
        }
    }
}
